<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <script>
      var bodyEle = document.body;
      console.dir(bodyEle);
      var htmlEle = document.documentElement;
      console.log(htmlEle);
    </script>
  </body>
</html>